#include <iostream>  
#include <cstring>  
using namespace std;  
char crack(char ch)  
{  
    int n;  
    if (ch>='a'&&ch<='z'){  
        ch -= ('a'-'A');  
        n = ch-'A';  
<<<<<<< HEAD
        n = (n-3)%26;  
=======
        n = (n+3)%26;  
>>>>>>> 52e067c87220d9f8ea06b3f373e1d3e798157bbc
        ch = n+'A';  
    }  
    else{  
        ch -= ('A'-'a');  
        n = ch-'a';  
<<<<<<< HEAD
        n = (n-3)%26;  
=======
        n = (n+3)%26;  
>>>>>>> 52e067c87220d9f8ea06b3f373e1d3e798157bbc
        ch = n+'a';  
    }  
    return ch;  
}  
int main()  
{  
    int j=0;  
    string original, cryptograph;  
    cin >> cryptograph;  
    original = cryptograph;  
    for (long i=cryptograph.size()-1; i>=0; i--){  
        original[j++] = crack(cryptograph[i]);  
    }  
    cout << original;  
    return 0;  
} 
<<<<<<< HEAD

=======
>>>>>>> 52e067c87220d9f8ea06b3f373e1d3e798157bbc
